<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<s:fielderror/>
<s:form action="productAction">
<s:textfield  name="id" label="产品编号"/>
<s:textfield name="name"  label="产品名称"/>
<s:textfield name="price" label="产品价格"/>
<s:textfield name="buildDate" label="生产日期"/>
<s:submit value="添加"></s:submit>
</s:form>
<h3>第1个转换器 Point</h3>
<s:form action="pointAction">
<s:textfield name="point" value="101,202" label="坐标位置"/>
<s:submit value="添加"></s:submit>
</s:form>
<h3>第2个转换器 Product数组对象</h3>
<s:form action="productAction">
<s:textfield  name="products" label="产品1" value="1001,小米手机,1999,2017-01-02" size="30"/>
<s:textfield  name="products" label="产品2" value="1002,格力空调,3999,2017-07-02" size="30"/>
<s:textfield  name="products" label="产品3" value="1003,华为电脑,8999,2017-05-05" size="30"/>
<s:submit value="添加"></s:submit>
</s:form>
</body>
</html>